﻿<UserControl x:Class="Rotempco.ORM.Generator.TableView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:VM="clr-namespace:Rotempco.ORM.Generator.ViewModels"
             xmlns:ListSynchronizer="clr-namespace:Rotempco.ORM.Generator.Logic.ListSynchronizer"
             mc:Ignorable="d" 
             d:DesignHeight="600" d:DesignWidth="800" >
    <UserControl.Resources>
        <ObjectDataProvider x:Key="vmTables" ObjectType="{x:Type VM:VMTables}" MethodName="GetInstance" />
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="66*" />
            <RowDefinition Height="484*" />
            <RowDefinition Height="50*" />
        </Grid.RowDefinitions>
        <ListBox HorizontalAlignment="Stretch" Margin="12,0" Name="listBox1" VerticalAlignment="Top" ItemsSource="{Binding Source={StaticResource vmTables},Path=Tables}" SelectionMode="Extended"
                 ListSynchronizer:MultiSelectorBehaviours.SynchronizedSelectedItems="{Binding Source={StaticResource vmTables}, Path=SelectedTables, UpdateSourceTrigger=PropertyChanged}" Height="484" Grid.Row="1">
        </ListBox>
        <Label Content="Select Tables to use" Height="28" HorizontalAlignment="Left" Margin="12,7,0,0" Name="label1" VerticalAlignment="Top" />
        <Button Content="Setup EntityObjects" Grid.Row="2" Height="23" HorizontalAlignment="Right" Margin="0,15,12,0" Name="button_SetupEntityObjects" VerticalAlignment="Top" Width="118" Click="button_SetupEntityObjects_Click" />
        <Button Content="Auto generate selected" Height="23" HorizontalAlignment="Right" Margin="0,15,136,0" Name="button_GenerateAll" VerticalAlignment="Top" Width="138" Grid.Row="2" Click="button_GenerateAll_Click" />
        <Label Content="" Grid.Row="1" Height="28" HorizontalAlignment="Left" Margin="12,383,0,0" Name="label_Progress" VerticalAlignment="Top" />
        <Button Content="Reload Tables" Grid.Row="2" Height="23" HorizontalAlignment="Left" Margin="12,15,0,0" Name="button_ReloadTables" VerticalAlignment="Top" Width="114" Click="button_ReloadTablesClick" />
    </Grid>
</UserControl>
